package com.tjetc.output;

import org.junit.jupiter.api.Test;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;

public class _8PrintWriter {

    @Test
    public void testPrintWriter() throws IOException {
        PrintWriter printWriter = new PrintWriter(new FileWriter("/Users/gaoyongxiang/百度网盘/IDEA-Java/202507-java-se/chapter16/file/hello.txt"), true);
        printWriter.println(1);
    }
}
